package com.itheima.springbootwebbtalis.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
   封装阿里云OSS的多个参数的实体类
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss") //从application.yml中一次获取一批参数
public class AliyunOSSProperties {
    private String endpoint;
    private String bucketName;
}
